#ifndef KEYEVENTFILTER_H
#define KEYEVENTFILTER_H

#include <QObject>
#include <qevent.h>

// 用于QML全局监听键盘时间
class KeyEventFilter : public QObject
{
    Q_OBJECT
public:
    KeyEventFilter();
    bool eventFilter(QObject *watched, QEvent *event) override;

signals:
    void ctrlPressed();
    void ctrlReleased();

};

#endif // KEYEVENTFILTER_H
